package com.dongdongshop.api;

import com.dongdongshop.data.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdongshop-order-service")
public interface OrderServiceApi {


    @PostMapping("/order/updateOrderStatus")
    Result updateOrderStatus(@RequestParam String out_trade_no, @RequestParam String trade_no);

    //退款修改订单状态
    @PostMapping("/order/refundOrderStatus")
    Result refundOrderStatus(@RequestParam Long id);
}
